package com.atguigu.amqp;

import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * 自动配置：
 *     1.RabbitAutoConfiguration
 *     2.有自动配置连接工厂：CachingConnectionFactory
 *     3.RabbitProperties封装了RabbitMQ的配置
 *     4.RabbitTemplate:给RabbitMQ发送和接收消息
 *     5.AmqpAdmin：RabbitMQ系统管理功能组件
 *          AmqpAdmin:创建和删除Queue，Exchange，Binding
 *     6.@EnableRabbit + @RabbitListener：监听消息队列的内容
 */
@SpringBootApplication
//开启基于注解的RabbitMQ模式
@EnableRabbit
public class SpringBoot10AmqpApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringBoot10AmqpApplication.class, args);
    }

}
